/************************************************************************
 * The code is owned by mainframer.cn and Shang Tao
 * Without aproval of mainframer.cn and Shang Tao, remove the copyright
 * infomation is regarded invassion of proprietary copyright
 ***********************************************************************/
package com.mr.qa.action;
import com.mr.qa.GlobalConfigs;
import com.mr.qa.bo.QuestionCategory;
/**
 *
 * @author user
 */
class QuestionActionUtility
{
    public static boolean isUnderMFerClub(QuestionCategory cat)
    {
        if(cat.getId().intValue() == GlobalConfigs.IBM_ALUM_CATEGORY_ID)
        {
            return true;
        }
        else
        {
            QuestionCategory parent = cat.getMrIaskCategory();
            if(parent != null)
            {
                if(parent.getId().intValue() == GlobalConfigs.IBM_ALUM_CATEGORY_ID)
                {
                    return true;
                }
            }
        }
        return false;
    }
}
